
import request from '@/axios'

export function getList(data) {
    return request({
      url: '/sys/supplier/list',
      method: 'get',
      params: data
    })
}


export function add(data) {
  return request({
    url: '/sys/supplier/add',
    method: 'post',
    data
  })
}

export function getDepartmentList(){
  return request({
    url: '/sys/department/listDown',
    method: 'get',
  })
}
export function edit(data){
  return request({
    url: '/sys/supplier/edit',
    method: 'put',
    data
  })
}

export function del(data){
  return request({
    url: '/sys/supplier/del',
    method: 'delete',
    data
  })
}
